home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et-2_2.lha / et2.2 / src / SUNOS / sunptty.h < prev    next >
C/C++ Source or Header  |  1990-11-20  |  714b  |  24 lines

  1. #ifndef sunptty_First
  2. #define sunptty_First
  3.  
  4. //---- C++ interface to sunptty.c ----------------------------------------
  5.  
  6. extern "C" {
  7.     FILE *sunPttySpawnSlave(char *name, char **args, int *pid, char **name,
  8.                             PttyChars *pc, int *tslot);
  9.     // open a pseudotty, fork a process name with args and connect 0,1,2 to
  10.     // slave side, pid returns the pid of the process on the slave side
  11.     // pid is the process group of the process on the slave side
  12.     // name is the name of ptty
  13.     
  14.     void sunPttyCleanupPtty(char *slaveName, int tslot);
  15.     // reset state of ptty
  16.     
  17.     void sunPttyKillChild(int pgrp);
  18.     void sunPttyBecomeConsole(char*);
  19.     void sunPttySetSize(char*, int, int);
  20. }
  21.  
  22. #endif sunptty_First
  23.  
  24.